package com.vertigo.fever;


public class GameThread implements Runnable {

	private boolean isRunning;
	private boolean isPaused;

	public void run() {
	    while (isRunning) {
	    	try {
	    		while (isPaused && isRunning) {
	    			Thread.sleep(100);
		        }
		        update();
		    } catch (InterruptedException e) {
				e.printStackTrace();
			}
	    }
	}

	private void update() {
	    //updateState();
		processInput();
	    //updateAI();
	    updatePhysics();
	    //updateAnimations();
	    //updateSound();
	    //updateGraphics();
	}

	private void processInput() {
		// TODO Auto-generated method stub
		
	}
	
	private void updatePhysics() {
		// TODO Auto-generated method stub
		
	}

}
